﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace RecruitmentPage.Models.RPModel
{
    public class Account
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public Guid UniqueId { get; set; }

        public string Email { get; set; }
        public string Password { get; set; }

        /*
         * Status:
         * 0: Wait to approve
         * 1: Active
         * 2: Disable
         * 
         */
        public int Status { get; set; }

        [ForeignKey("PersonalId")]
        public PersonalInfor PersonalInfor { get; set; }
        public Guid PersonalId { get; set; }


        [ForeignKey("RoleId")]
        public Role Role { get; set; }
        public Guid RoleId { get; set; }

    }
}